function easycopy(args) {
    arraycopy(args.from,args.from_start||0,
        args.to,args.to_start||0,args.length);

}
var a=[1,2,3,4],b=[];
easycopy({from:a,to:b,length:4});